package com.atguigu.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * @param
 * @description: 手写轮询算法
 * @return
 */
public interface LoadBalancer {

    /**
     * @param
     * @return
     * @description: 通过主机列表进行轮询
     */
    ServiceInstance instances(List<ServiceInstance> serviceInstances);
}
